import { AxiosRequestConfig } from 'axios';
import request from '@/utils/request';

/*************************************快速配置********************************/
/**
 * 快速配置列表
 */
export const listQuickConfig = (params: any) => {
  return request({
    url: '/quickConfig/list',
    method: 'get',
    params,
  });
};
/**
 * 配置推送任务列表
 */
export const quickConfigTaskList = (params: any) => {
  return request({
    url: '/quickConfigTask/list',
    method: 'get',
    params,
  });
};
/**
 * 配置推送任务列表
 */
export const delQuickConfigTask = (params: any) => {
  return request({
    url: '/quickConfigTask/del',
    method: 'DELETE',
    params,
  });
};

/**
 * 快速配置设备型号查询
 */
export const deviceModelPull = () => {
  return request({
    url: '/deviceMode/device/modelPull',
    method: 'get',
  });
};

/**
 * 新增快速配置
 */
export const addQuickConfig = (data: any) => {
  return request({
    url: '/quickConfig/add',
    method: 'post',
    data,
  });
};

/**
 * 更新快速配置
 */
export const updateQuickConfig = (data: any) => {
  return request({
    url: '/quickConfig/update',
    method: 'PUT',
    data,
  });
};

/**
 * 删除快速配置
 */
export const delQuickConfig = (params: any) => {
  return request({
    url: '/quickConfig/del',
    method: 'delete',
    params,
  });
};

/**
 * 审核
 */
export const ApprovalConfig = (data: any) => {
  return request({
    url: '/quickConfig/approval',
    method: 'POST',
    data,
  });
};

/**
 * 启用停用
 */
export const quickConfigEnable = (params: any) => {
  return request({
    url: '/quickConfig/enable',
    method: 'POST',
    params,
  });
};

// 推送记录
export const pushLog = (params: any) => {
  return request({
    url: '/configPushTotalLog/list',
    method: 'get',
    params,
  });
};
// 取消预警
export function cancelFastWarning(code: string) {
  return request({
    url: '/fastWarningConfig/cancelFastWarning/' + code,
    method: 'get',
  });
}

// 取消天气预警
export function cancelWeather(code: string) {
  return request({
    url: '/fastWeatherWarning/cancelFastWeatherWarning/' + code,
    method: 'get',
  });
}

// 取消推送
export const cancelPushConfig = (id: any) => {
  return request({
    url: `configPushTotalLog/cancel/${id}`,
    method: 'get',
  });
};

// 推送记录查看
export const pushLogCheck = (params: any) => {
  return request({
    url: '/configPushLog/logList',
    method: 'get',
    params,
  });
};

//获取在线的设备
export const getOnlineDevice = (params: any) => {
  return request({
    url: '/device/selectConfigDeviceList',
    method: 'get',
    params,
  });
};

//获取在线的设备配置
export const getSelectDeviceConfig = (params: any) => {
  return request({
    url: '/device/selectConfigList',
    method: 'get',
    params,
  });
};

// 推送记录设备列表查询
export const getProjectDeviceMapV5 = (data: any) => {
  const { pageNum, pageSize } = data;
  let postdata = { ...data };
  delete postdata.pageNum;
  delete postdata.pageSize;
  return request({
    url: `/project/getProjectDeviceMapV5?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'post',
    data: postdata,
  });
};

// 点击推送
export const clickPush = (data: any) => {
  return request({
    url: '/configPushTotalLog',
    method: 'POST',
    data,
  });
};

// 推送更新
export const pushProject = (data: any) => {
  return request({
    url: '/configPushLog',
    method: 'POST',
    data,
  });
};

// 设备总览快速配置
export const fastUpdateDeviceConf = (data: any) => {
  return request({
    url: '/quickConfig/updateDeviceConfig',
    method: 'POST',
    data,
  });
};

/*************************************配置推送任务********************************/
// 新增配置推送任务
export const addQuickConfigTask = (data: any) => {
  return request({
    url: '/quickConfigTask/add',
    method: 'POST',
    data,
  });
};

// 修改配置推送任务
export const updateQuickConfigTask = (data: any) => {
  return request({
    url: '/quickConfigTask/update',
    method: 'PUT',
    data,
  });
};

export const getQuickConfigTaskInfo = (id: any) => {
  return request({
    url: '/quickConfigTask/getInfo/' + id,
    method: 'GET',
  });
};

// 审核配置推送任务
export const approvalQuickConfigTask = (data: any) => {
  return request({
    url: '/quickConfigTask/approval',
    method: 'POST',
    data,
  });
};

// 获取配置推送任务设备列表
export const getQuickConfigTaskDeviceList = (params: any) => {
  return request({
    url: '/quickConfigTask/configDeviceList',
    method: 'get',
    params,
  });
};

// 推送记录
export const configPushTotalLog = (data: any) => {
  return request({
    url: '/quickConfigTask/configPushTotalLog',
    method: 'POST',
    data,
  });
};

/*************************************软件版本管理********************************/
// 查询设备版本列表
export const fetcSoftwareList = (query: any) => {
  return request({
    url: '/version/list',
    method: 'get',
    params: query,
  });
};

// 查询设备版本详细
export const getSoftwareInfo = (versionId: any) => {
  return request({
    url: '/version/' + versionId,
    method: 'get',
  });
};

// 新增设备版本
export const addSoftware = (data: any) => {
  return request({
    url: '/version',
    method: 'post',
    data: data,
  });
};

// 修改设备版本
export const updateSoftware = (data: any) => {
  return request({
    url: '/version',
    method: 'put',
    data: data,
  });
};

// 删除设备版本
export const delSoftware = (versionId: any) => {
  return request({
    url: '/version/' + versionId,
    method: 'delete',
  });
};

// 设备型号下拉框数据
export const getDeviceMode = (params: any) => {
  return request({
    url: '/deviceMode/modelInfo',
    method: 'get',
    params,
  });
};

// 点击推送
export const clickSoftwarePush = (data: any) => {
  return request({
    url: '/versionPushTotalLog',
    method: 'POST',
    data,
  });
};

// 资料推送
export const getSoftwarePush = (data: any) => {
  return request({
    url: '/version/' + data,
    method: 'get',
  });
};

// 推送更新
export const pushSoftwareProject = (data: any) => {
  return request({
    url: '/versionPushLog',
    method: 'POST',
    data,
  });
};

// 推送记录
export const pushSoftwareLog = (data: any, params: any) => {
  return request({
    url: '/versionPushTotalLog/byVersionId/' + data,
    method: 'get',
    params,
  });
};

export const pushSoftwareLogV2 = (data: any, params: any) => {
  return request({
    url: '/versionPushTotalLog/byVersionIdV2/' + data,
    method: 'get',
    params,
  });
};

// 推送记录查看
export const pushSoftwareLogCheck = (params: any) => {
  return request({
    url: '/versionPushLog/logList',
    method: 'get',
    params,
  });
};

// 取消监控
export const cancelSoftwareMonitor = (data: any) => {
  return request({
    url: '/versionPushLog/cancelMonitor',
    method: 'PUT',
    data,
  });
};

// 推送设备列表
export const getProjectDeviceMap = (data: any) => {
  const { pageNum, pageSize } = data;
  let postdata = { ...data };
  delete postdata.pageNum;
  delete postdata.pageSize;
  return request({
    url:
      '/project/getProjectDeviceMapV4' +
      `?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'post',
    data: postdata,
  });
};

export const getProjectDeviceMapNew = (data: any) => {
  const { pageNum, pageSize } = data;
  let postdata = { ...data };
  delete postdata.pageNum;
  delete postdata.pageSize;
  return request({
    url:
      '/project/getProjectDeviceMapV6' +
      `?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'post',
    data: postdata,
  });
};

// 根据类型获取型号
export const getModelInfoById = (params: any) => {
  return request({
    url: '/deviceMode/modelInfoById',
    method: 'get',
    params,
  });
};

// 获取设备分类信息
export const getModelStatistics = (ids: any) => {
  return request({
    url: '/device/GetStatistics/' + ids,
    method: 'get',
  });
};

// 提交软件版本的审批
export const submitSoftwareAudit = (data: any) => {
  return request({
    url: '/version/submitAudit',
    method: 'post',
    data,
  });
};

// 开启/关闭软件版本
export const updateSoftwareStatus = (data: any) => {
  return request({
    url: '/version/updateStatus',
    method: 'post',
    data,
  });
};

export const getTestProjectDeviceMapNew = (data: any) => {
  const { pageNum, pageSize } = data;
  let postdata = { ...data };
  delete postdata.pageNum;
  delete postdata.pageSize;
  return request({
    url:
      '/project/getTestProjectDeviceMapV6' +
      `?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'post',
    data: postdata,
  });
};

/*************************************固件版本管理********************************/
// 查询固件版本列表
export const featchFirmwareList = (query: any) => {
  return request({
    url: '/firmwareVersion/list',
    method: 'get',
    params: query,
  });
};

// 查询固件版本详细
export const getFirmwareInfo = (versionId: any) => {
  return request({
    url: '/firmwareVersion/' + versionId,
    method: 'get',
  });
};

// 新增固件版本
export const addFirmware = (data: any) => {
  return request({
    url: '/firmwareVersion',
    method: 'post',
    data: data,
  });
};

// 修改固件版本
export const updateFirmware = (data: any) => {
  return request({
    url: '/firmwareVersion',
    method: 'put',
    data: data,
  });
};

// 删除固件版本
export const delFirmware = (versionId: any) => {
  return request({
    url: '/firmwareVersion/' + versionId,
    method: 'delete',
  });
};
// 点击推送
export const firmclickPush = (data: any) => {
  return request({
    url: '/firmwareVersionPushTotalLog',
    method: 'POST',
    data,
  });
};

// 推送更新
export const firmpushProject = (data: any) => {
  return request({
    url: '/firmwareVersionPushLog',
    method: 'POST',
    data,
  });
};

// 推送记录
export const firmPushLog = (data: any, params: any) => {
  return request({
    url: '/firmwareVersionPushTotalLog/byVersionId/' + data,
    method: 'get',
    params,
  });
};

export const firmPushLogV2 = (data: any, params: any) => {
  return request({
    url: '/firmwareVersionPushTotalLog/byVersionIdV2/' + data,
    method: 'get',
    params,
  });
};

// 推送记录查看
export const firmPushLogCheck = (params: any) => {
  return request({
    url: '/firmwareVersionPushLog/logList',
    method: 'get',
    params,
  });
};

// 推送记录查看
export const down = (data: any) => {
  return request({
    url: '/file/downOneFile',
    method: 'post',
    data,
  });
};

// 推送记录查看
export const firmCancelMonitor = (data: any) => {
  return request({
    url: '/firmwareVersionPushLog/cancelMonitor',
    method: 'PUT',
    data,
  });
};

export const firmSubmitAudit = (data: any) => {
  return request({
    url: '/firmwareVersion/submitAudit',
    method: 'post',
    data,
  });
};

export const firmUpdateStatus = (data: any) => {
  return request({
    url: '/firmwareVersion/updateStatus',
    method: 'post',
    data,
  });
};

/*************************************发版计划********************************/
// 查询设备版本列表
export const getVersionlist = (query: any) => {
  return request({
    url: '/sendVersion/list',
    method: 'get',
    params: query,
  });
};

// 获取项目设备分组
export const getProjectDeviceGroupMap = (data: any) => {
  const { pageNum, pageSize } = data;
  let postdata = { ...data };
  delete postdata.pageNum;
  delete postdata.pageSize;
  return request({
    url:
      '/project/getProjectDeviceGroupMap' +
      `?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'post',
    data: postdata,
  });
};

// 新增/修改发版计划
export const updateSendVersion = (data: any) => {
  return request({
    url: '/sendVersion/save',
    method: 'post',
    data,
  });
};

// 提交审批
export const submitVersionAudit = (data: any) => {
  return request({
    url: '/sendVersion/submitAudit',
    method: 'post',
    data,
  });
};
// 删除发版计划 /id
export const deletesendVersion = (id: any) => {
  return request({
    url: '/sendVersion/delete/' + id,
    method: 'post',
  });
};

// 选择固件或软件审核后的下拉框数据
export const getAuditData = (params: any) => {
  return request({
    url: '/sendVersion/getAuditData',
    method: 'get',
    params,
  });
};
export const sendVersionDetail = (id: any) => {
  return request({
    url: '/sendVersion/detail/' + id,
    method: 'get',
  });
};

// 获取发版修改专用格式详情
export const sendVersionInfo = (id: any) => {
  return request({
    url: '/sendVersion/update/detail/' + id,
    method: 'get',
  });
};

// 获取待发送数据列表

export const getSendVersionList = (id: any, query: any) => {
  return request({
    url: '/sendVersion/detailDevices/' + id,
    method: 'get',
    params: query,
  });
};

// 获取项目设备统计
export const getProjectStatistics = (data: any) => {
  return request({
    url: '/device/GetStatisticsForProject',
    method: 'get',
    params: data,
  });
};

// 清空软件执行任务
export const clearSoftwareLog = (id: any) => {
  return request({
    url: '/versionPushLog/clearLog/' + id,
    method: 'post',
  });
};

// 清空硬件执行任务
export const clearFirmwareLog = (id: any) => {
  return request({
    url: '/firmwareVersionPushLog/clearLog/' + id,
    method: 'post',
  });
};
/*************************************APP版本管理********************************/

// 查询APP版本列表
export const getAppVersionList = (query: any) => {
  return request({
    url: '/appVersion/list',
    method: 'get',
    params: query,
  });
};

// 查询APP版本详情
export const getAppVersionInfo = () => {
  return request({
    url: '/appVersion/getInfo',
    method: 'get',
  });
};

// 新增APP版本
export const addAppVersion = (data: any) => {
  return request({
    url: '/appVersion/add',
    method: 'post',
    data: data,
  });
};

// 修改APP版本
export const updateAppVersion = (data: any) => {
  return request({
    url: '/appVersion/update',
    method: 'put',
    data: data,
  });
};

// 删除设备版本
export const delAppVersion = (versionId: any) => {
  return request({
    url: '/appVersion/' + versionId,
    method: 'delete',
  });
};

export const submitAppAudit = (data: any) => {
  return request({
    url: '/appVersion/submitAudit',
    method: 'post',
    data,
  });
};

/*************************************图片管理********************************/
// 审核
export const dataManageAprove = (data: any) => {
  return request({
    url: '/dataManage/approve',
    method: 'post',
    data,
  });
};

// 资料管理列表
export const getDataListInfo = (query: any) => {
  return request({
    url: '/dataManage/list',
    method: 'get',
    params: query,
  });
};

// 资料管理新增
export const addData = (data: any) => {
  return request({
    url: '/dataManage',
    method: 'post',
    data,
  });
};

// 资料管理删除
export const delData = (data: any) => {
  return request({
    url: '/dataManage/' + data,
    method: 'delete',
  });
};

// 资料管理详情
export const getDataDetails = (data: any) => {
  return request({
    url: '/dataManage/' + data,
    method: 'get',
  });
};

// 资料推送
export const getDataPush = (data: any) => {
  return request({
    url: '/dataManage/' + data,
    method: 'get',
  });
};

// 点击推送
export const clickDataPush = (data: any) => {
  return request({
    url: '/dataPushTotalLog',
    method: 'post',
    data,
  });
};

// 推送更新
export const pushDataProject = (data: any) => {
  return request({
    url: '/dataPushLog',
    method: 'post',
    data,
  });
};

// 推送记录
export const pushDataLog = (data: any, params: any) => {
  return request({
    url: '/dataPushTotalLog/byDataManageId/' + data,
    method: 'get',
    params,
  });
};

export const pushDataLogTwo = (params: any, id: any) => {
  return request({
    url: '/dataPushTotalLog/byDataManageId/' + id,
    method: 'get',
    params,
  });
};

// 推送记录查看
export const pushDataLogCheck = (params: any) => {
  return request({
    url: '/dataPushLog/logList',
    method: 'get',
    params,
  });
};

// 通知图片上传
export const informDataPush = (data: any) => {
  return request({
    url: '/file/uploadStr',
    method: 'post',
    data,
  });
};

//文件流查询
export const idataManage = (data: any) => {
  return request({
    url: '/dataManage/view',
    method: 'post',
    data,
  });
};

// 查询广播管理
export const getBroadcastList = (query: any) => {
  return request({
    url: '/broadcastManage/list',
    method: 'get',
    params: query,
  });
};

// 新增广播管理
export const addBroadcast = (data: any) => {
  return request({
    url: '/broadcastManage/add',
    method: 'post',
    data,
  });
};

// 删除广播管理
export const delBroadcast = (id: any) => {
  return request({
    url: '/broadcastManage/del?ids=' + id,
    method: 'delete',
  });
};

//文件流查询
export const broadcastManage = (data: any) => {
  return request({
    url: '/broadcastManage/view',
    method: 'post',
    data,
  });
};

export const uploadFile = (data: any, config: AxiosRequestConfig<any>) => {
  return request({
    url: '/file/upload',
    method: 'post',
    data,
    ...config,
  });
};

// 获取气象演练列表
export function getfastWeather(params: any) {
  return request({
    url: '/fastWeatherWarning/list',
    method: 'get',
    params,
  });
}

// 获取气象推送记录
export function pushTotalLog(code: any, params: any) {
  return request({
    url: '/weatherDrillPushTotalLog/byDrillId/' + code,
    method: 'get',
    params,
  });
}

// 获取气象演练推送设备列表
export function weatherlogList(params: any) {
  return request({
    url: '/weatherDrillPushLog/logList',
    method: 'get',
    params,
  });
}

// 删除气象演练
export function deleteFastWeatherWarning(ids: any) {
  return request({
    url: '/fastWeatherWarning/deleteFastWeatherWarning/' + ids.join(),
    method: 'delete',
  });
}

// 获取速报演练列表
export function getQuickReportList(params: any) {
  return request({
    url: '/quickReport/list',
    method: 'get',
    params,
  });
}

// 推送记录
export function getPushLog(data: any, params: any) {
  return request({
    url: '/drillReportPushTotalLog/byDrillId/' + data,
    method: 'get',
    params,
  });
}

// 推送
export function handleEewPush(data: any) {
  return request({
    url: '/drillReportPushLog',
    method: 'post',
    data,
  });
}

// 推送失败记录
export function getFailLog(params: any) {
  return request({
    url: '/drillReportPushLog/logList',
    method: 'get',
    params,
  });
}

export function handleDelete(ids: any) {
  return request({
    url: '/quickReport/' + ids.join(),
    method: 'Delete',
  });
}

// 获取地理位置
export function getAddress(lon: any, lat: any) {
  return request({
    url: '/device/getAddress/' + lon + '/' + lat,
    method: 'get',
  });
}
// 获取地理位置
export function getAddressNew(lon: any, lat: any) {
  return request({
    url: '/device/getAddressNew/' + lon + '/' + lat,
    method: 'get',
  });
}
// 设备对象
export function getDevice(params: any) {
  return request({
    url: '/device/drillDevice',
    method: 'get',
    params,
  });
}

// 获取详情
export function getDetails(params: any) {
  return request({
    url: '/quickReport/' + params,
    method: 'get',
  });
}

// 查询设备型号
export function getModel(params?: any) {
  return request({
    url: '/deviceMode/modelInfo',
    method: 'get',
    params,
  });
}

// 获取项目名称
export function getProjectTree(params?: any) {
  return request({
    url: '/project/treeselect',
    method: 'get',
    params,
  });
}

// 保存
export function handleAdd(data: any) {
  return request({
    url: '/quickReport',
    method: 'post',
    data,
  });
}

// 预警演练列表
export function getList(params: any) {
  return request({
    url: '/drill/list',
    method: 'get',
    params,
  });
}

// 推送记录
export function getPushLogByMsgId(data: any, params: any) {
  return request({
    url: '/drillPushTotalLog/byDrillId/' + data,
    method: 'get',
    params,
  });
}

// 推送记录
export function getFailLogByMsgId(params: any) {
  return request({
    url: '/drillPushLog/logList',
    method: 'get',
    params,
  });
}

//删除
export function handleDel(data: any) {
  return request({
    url: '/drill/' + data,
    method: 'Delete',
  });
}

// 推送
export function handlePush(data: any) {
  return request({
    url: '/drillPushLog',
    method: 'post',
    data,
  });
}

export function fastWeather(data: any) {
  return request({
    url: '/fastWeatherWarning/addFastWeatherWarning',
    method: 'post',
    data,
  });
}

export function getFastWarning(data: any) {
  return request({
    url: '/fastWarningConfig/addFastWarning',
    method: 'post',
    data,
  });
}

export function pushWeather(data) {
  return request({
    url: '/weatherDrillPushTotalLog',
    method: 'post',
    data,
  });
}

export function pushLogWeather(data) {
  return request({
    url: '/weatherDrillPushLog',
    method: 'post',
    data,
  });
}

// 推送标识
export function getPushIndex(data: any) {
  return request({
    url: '/drillPushTotalLog',
    method: 'post',
    data,
  });
}

// 推送标识
export function getEewPushIndex(data) {
  return request({
    url: '/drillReportPushTotalLog',
    method: 'post',
    data,
  });
}

// 查询设备管理列表
export function listLevelWarm() {
  return request({
    url: '/levelConfig/selectList',
    method: 'get',
  });
}

// 新增预警演练
export function handleAddDrill(data: any) {
  return request({
    url: '/drill',
    method: 'post',
    data,
  });
}

// 编辑预警演练
export function handleEdit(data: any) {
  return request({
    url: '/drill',
    method: 'put',
    data,
  });
}

// 预警演练详情
export function getDetailsDrill(params: any) {
  return request({
    url: '/drill/' + params,
    method: 'get',
  });
}

// 审核
export const handleApprove = (data: any) => {
  return request({
    url: '/drill/approve',
    method: 'post',
    data,
  });
};

// 倒计时
export const warningCountdown = (data: any) => {
  return request({
    url: '/drill/warningCountdown',
    method: 'get',
    params: data,
  });
};

//  删除
export function batchDelete(ids: any) {
  return request({
    url: `/registerPublish/batchDelete/${ids.join()}`,
    method: 'post',
  });
}

// 批量注册管理列表
export function getRegisterList(data: any) {
  return request({
    url: `/registerPublish/list?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
    method: 'post',
    data,
  });
}

// 下发记录
export function getPushTotalInfo({ id, pageNum, pageSize }) {
  return request({
    url: `/registerPublish/getPushTotalInfo/${id}?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'get',
  });
}

// 合并
export function registerMerge(data: any) {
  return request({
    url: `/registerPublish/merge`,
    method: 'post',
    data,
  });
}

/**
 * 下发记录详情
 */

export function getPushDetail({ id, pageNum, pageSize }) {
  return request({
    url: `/registerPublish/getPushDetail/${id}?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'get',
  });
}

// 批量注册详情
export function getRegisterInfo(data: any) {
  return request({
    url: `/registerPublish/detail?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
    method: 'post',
    data,
  });
}

//  下发
export function handlePublish(id: any, code: any) {
  return request({
    url: `/device/publish?id=${id}&codes=${code.join()}`,
    method: 'get',
  });
}

/**
 * 下发对比
 */
export function getPushCompare(id: any, code: any) {
  return request({
    url: `/device/contrast?registerPublishId=${id}&codes=${code.join()}`,
    method: 'get',
  });
}

//   注册
export function handleRegister(data: any) {
  return request({
    url: '/device/register',
    method: 'post',
    data,
  });
}

// 下载模板
export function downloadTemplate() {
  return request({
    url: '/device/downloadTemplate',
    method: 'get',
    responseType: 'blob',
  });
}

/**
 * 上传
 */
export const deviceImportCheck = (data: any) => {
  return request({
    url: '/device/importCheck',
    method: 'POST',
    data,
  });
};

// 下载
export function downloadFailRecord(data: any) {
  return request({
    url: `/device/checkFailExport`,
    method: 'post',
    data,
    responseType: 'blob',
    fetchOptions: {
      noEncoded: true,
    },
  });
}

export function importFile(data: any) {
  return request({
    url: '/device/import',
    method: 'post',
    data,
  });
}

// 推送详情列表
export function deviceList(params: any) {
  return request({
    url: `/quickConfigTask/deviceList`,
    method: 'get',
    params,
  });
}

// 设备参数对比
export function deviceCompare(data: any) {
  return request({
    url: `/quickConfigTask/compare`,
    method: 'POST',
    data,
  });
}

// 推送
export function configPushLog(data: any) {
  return request({
    url: `/quickConfigTask/configPushLog`,
    method: 'POST',
    data,
  });
}

// 启用/停用
export function configEnable(params: any) {
  return request({
    url: `/quickConfigTask/enable`,
    method: 'POST',
    params,
  });
}
// 记录
export function selectTotalList(params: any) {
  return request({
    url: `/quickConfigTask/selectTotalList`,
    method: 'get',
    params,
  });
}
